package com.lnj.api;

import com.lnj.utils.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(   name="product")
public interface ProductApi {


    /**
     * 根据ID获取商品详情
     * GET /products/{productId}
     * @param productId 商品ID
     * @return 包含商品DTO的统一响应
     */
    @GetMapping("/products/{productId}")
    public ResponseEntity<ResponseResult> getProductById(@PathVariable("productId") Long productId);



}
